/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package bill.view;

import java.awt.Component;
import javax.swing.JLabel;
import javax.swing.JTable;
import javax.swing.table.TableCellRenderer;

/**
 *
 * @author Administrator
 */
public class PackingRenderer extends JLabel
                           implements TableCellRenderer{

    public PackingRenderer(){
         setOpaque(true);
    }

    public Component getTableCellRendererComponent(
            JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {        
        if(value != null) setText(value.toString());
        return this;
    }    

}
